package com.xingxuecn.limit.service;

import com.xingxuecn.limit.common.model.RoleUserNode;
import com.xingxuecn.limit.common.model.TreeNode;

import java.sql.SQLException;
import java.util.List;
import java.util.Set;

/**
 * @author zgx at 2018/9/13 0013 下午 4:42
 */
public interface LimitService {


    boolean roleHeader(Integer roleId, Set<Integer> headerIds, Boolean checked);


    List<TreeNode> loadHeaderByRole(Integer roleId) throws SQLException;

    List<RoleUserNode> loadUserRoles(Integer userId) throws SQLException;


    boolean userRoles(Boolean checked, Integer roleId, Integer userId);
}
